ABOUTDEVELOPERS |
SpatialStream® Code Examples
Adding Parcel Tile Layer
The most straight-forward way to add a Parcel Tile layer to a Bing map is by using the Bing Maps API. The example below shows how to add a SpatialStream® Parcel Tile layer using the Bing Maps API. GetMap
// layer for zoom level 20
parcelLayer = new Dmp.Layer.WMSLayer("Parcelwms", "SS", { antiAlias: true, parcelLayer.addChild( "Parcels", "samplesite.dmp/Parcels", "samplesite.dmp.Styles.Parcels/Default.sld.xml", { zIndex: 2, zoomRange: { } min: 20, max: 20 } ); map.addEntity(parcelLayer); // precached tiles from zoom level 14 - 19 layer = new Dmp.Layer.TileLayer("ParcelTiles", "SS", { antiAlias: true, layer.addChild("Parcels", "samplesite.dmp/ParcelTiles", "samplesite.dmp.Styles.Parcels/Default.sld.xml", { zIndex: 2, zoomRange: { min: 14, max: 19 },map.addEntity(layer); Run Sample Back To Index |